package com.yima.baseproj.module.sys.bill;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yima.baseproj.config.mybatis.handler.MybatisDateTypeHandler;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
@TableName("yry_bill")
public class BillEntity implements Serializable {

    @TableId(value = "id" ,type = IdType.AUTO)
    private Integer id;//订单Id
    private Integer picNum;//可选照片数量
    private String goodsPicture;//商品图片
    private String goodsDesc;//商品描述
    private String goodsName;//商品名称
    private String billType;//产品类型(0 实体相册   1底片照片)
    private BigDecimal billPrice;//订单总价
    private String billStatus;//订单状态(当产品类型为1，状态为  0待选择  1已完成当产品类型为0：0待选择 1已完成  2带制作)
    private Integer goodsId;//商品ID
    private Integer parentId;//家长ID
    private Integer studentId;//学生ID


    @TableField(fill = FieldFill.INSERT,value = "create_by")
    private String createBy;

    @TableField(fill = FieldFill.INSERT,value = "create_time",typeHandler = MybatisDateTypeHandler.class)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_by")
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_time",typeHandler = MybatisDateTypeHandler.class)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh")
    private Date updateTime;

    @TableField(value = "del_flag")
    @TableLogic(value = "0",delval = "1")
    private String delFlag = "0";




}
